import Vue from "vue";
import App from "./App.vue";
// import axios from "axios";
import router from "./router";
import http from "./request/http";
// 导入 font-awesome 图标库样式
import "font-awesome/css/font-awesome.min.css";
/**
 * 全局引用
 * import ElementUI from "element-ui";
 * import "element-ui/lib/theme-chalk/index.css";
 * Vue.use(ElementUI);
 */

// 局部引用
import "../plugins/element";

// 引入mock
import "mockjs";
import "@/mock/mock.js";

// 挂载axios在原型上共享
// Vue.prototype.axios = axios;
Vue.prototype.$http = http;

Vue.config.productionTip = false;

new Vue({
    router,
    render: (h) => h(App),
}).$mount("#app");